package cn.itcast.web.shiro;

import org.apache.shiro.crypto.hash.Md5Hash;

public class MdDemo {
    public static void main(String[] args) {
        String password = "123"; //密码
        String salt = "zhangsan@export.com"; //使用老王邮箱作为盐
        Md5Hash md5Hash = new Md5Hash(password, salt);

        System.out.println("加盐加密后数据："+ md5Hash.toString());


    }
}
//f7e2a364d9c3507fa06230f7860b6b58
